﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Shapes;
using KBS8.Business;
using KBS8.Shared;

namespace KBS8.Presentation
{
    public class PresentationManager
    {
        private static PresentationManager _presentationManager;

        private Window _mainWindow;

        private PresentationManager()
        {
            
        }

        /// <summary>
        /// Gives the data of the map of a specific area
        /// </summary>
        /// <param name="area">The specific area of which the system has to give the data</param>
        /// <param name="zoomlevel">The zoomlevel</param>
        public void GetRoadData(MapTile area, int zoomlevel)
        {
            BusinessManager.GetInstance().GetRoadData(area, zoomlevel);
        }

        /// <summary>.
        /// Generates the route
        /// </summary>
        public void GetRoute( /* Parameters are start, end but their classes still have to be build */)
        {
            BusinessManager.GetInstance().GetRoute();
        }

        public static PresentationManager GetInstance()
        {
            if (_presentationManager == null)
                _presentationManager = new PresentationManager();

            return _presentationManager;
        }
        internal void SetGUI(MainWindow.MainWindow mainWindow)
        {
            this._mainWindow = mainWindow;
        }
    }
}
